package com.diandian.backend.store.param;

import com.diandian.backend.store.dto.StoreDouyinLifeStoreInfoDetailParamDTO;
import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class StoreDouyinLifeStoreInfoDetailByRoomIdParam implements Serializable {

	private String roomId;
	private String belong;

	public void check(){
		if((this.roomId == null || "".equals(roomId))){
			throw new DefaultException("直播间id不能为空");
		}
		if(this.belong == null || "".equals(this.belong)){
			throw new DefaultException("归属标识不合法");
		}
	}

	public StoreDouyinLifeStoreInfoDetailParamDTO toDTO(){
		StoreDouyinLifeStoreInfoDetailParamDTO dto = new StoreDouyinLifeStoreInfoDetailParamDTO();
		dto.setRoomId(this.roomId);
		dto.setBelong(this.belong);
		return dto;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
}
